- /* sisccvbn.cpp by K.Tsuru */
- // function ID 3558 BRADIX
- /***************************************************************
- SN library
- SInteger class
- DRADIX ---> BRADIX radix conversion
- A radix conversion by square coupling method since ver. 2.18
- ***************************************************************/
-
- #ifndef SN_H
- #include "sn.h"
- #endif
-
- static const SInteger R(DRADIX);
-
- SInteger SCConvToBin(const SLong& x) {
- uint sz = x.Head() + 1u;
- SInteger *w = new SInteger[sz]; // work area
- const fType* pf = x.ReadFigures();
-
- for(uint i = 0; i < sz; i++) w[i].SetShort(pf[i]);
-
- SquareCoupling<SInteger> cv(w, R, sz);
- SInteger p;
- p = cv.getValue(); // before delete[];
-
- delete[] w;
-
- return p;
- }
sisccvbn.cpp : last modifiled at 2017/03/13 14:32:00(739 bytes)
created at 2016/04/25 14:53:17
The creation time of this html file is 2017/10/25 11:09:45 (Wed Oct 25 11:09:45 2017).